package com.dmy.ui;

import java.awt.*;

/**
 * 玩家坦克类
 */
public class MyTank extends Tank {

    // 默认颜色为橘黄色
    public static final Color DEFAULT_THEME_COLOR = Color.ORANGE;
    // 默认生命 5
    public static final int DEFAULT_MY_LIFE = 5;
    // 击杀敌人数量
    private int attackNum = 0;


    public int getAttackNum() {
        return attackNum;
    }

    public void incrAttackNum() {
        attackNum++;
    }

    public MyTank(int x, int y) {
        super(x, y, DEFAULT_MY_LIFE);
        this.setColor(DEFAULT_THEME_COLOR);
        this.setName("你");
        this.setEnemyTank(false);
    }

    public void incrAttack10() {
        attackNum += 10;
    }
}
